package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
	
	
	@Autowired
	private Environment env;
	
	@RequestMapping(value = "/getConfigBySvn", method = RequestMethod.GET	)
	public String getConfig() {		
		//return env.getProperty("prod.maxConnection");
		return env.getProperty("prod.name");
	}
}
